package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 行程模板表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-TravelTemplate")
@Data
@TableName(value = "travel_template")
public class TravelTemplate {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 行程模板名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="行程模板名称")
    private String name;

    /**
     * 行程图片
     */
    @TableField(value = "img")
    @ApiModelProperty(value="行程图片")
    private String img;

    /**
     * 行程人数
     */
    @TableField(value = "people_count")
    @ApiModelProperty(value="行程人数")
    private Integer peopleCount;

    /**
     * 行程节点json数据
     */
    @TableField(value = "properties")
    @ApiModelProperty(value="行程节点json数据")
    private String properties;

    /**
     * 路线规划
     */
    @TableField(value = "route")
    @ApiModelProperty(value="路线规划")
    private String route;

    /**
     * 行程模板备注
     */
    @TableField(value = "description")
    @ApiModelProperty(value="行程模板备注")
    private String description;

    /**
     * 景区id
     */
    @TableField(value = "scene_id")
    @ApiModelProperty(value="景区id")
    private String sceneId;

    /**
     * 推荐人信息json数据
     */
    @TableField(value = "referrer_info")
    @ApiModelProperty(value="推荐人信息json数据")
    private String referrerInfo;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 是否删除，1删除，0正常
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1删除，0正常")
    private Byte isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_IMG = "img";

    public static final String COL_PEOPLE_COUNT = "people_count";

    public static final String COL_PROPERTIES = "properties";

    public static final String COL_ROUTE = "route";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_REFERRER_INFO = "referrer_info";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_IS_DELETED = "is_deleted";
}